// s5_vm_product_show.js is copyrighted material by Shape5.com 2008 - current

// URL: http://www.shape5.com
// Date: 1/02/2007
// Notes: This script is copyrighted material of shape5.com and may not be redistributed or resold by any means.

var s5_vm_url_conv = "";

var s5_vm_ps_a = document.getElementsByTagName("A");

   for (var s5_vm1=0; s5_vm1<s5_vm_ps_a.length; s5_vm1++) {

     var s5_vm_url = s5_vm_ps_a[s5_vm1].href;

     var s5_vm_url_index = s5_vm_url.indexOf('javascript:void');

     if (s5_vm_url_index >= 0) {
       
       if (s5_vm_ps_a[s5_vm1].childNodes[0].tagName == "IMG") {
	   
	      for (var s5_vm2=31; s5_vm2<(s5_vm_url.length-31); s5_vm2++) {
		  
		    if (s5_vm_url.charAt([s5_vm2]) == "'") {
		       break;
		    }
		  
		     s5_vm_url_conv = s5_vm_url_conv + s5_vm_url.charAt([s5_vm2]);
		  
		  }
		  
		   if (s5_vm_url_conv.charAt(0) == "t") {
		       s5_vm_url_conv = "ht" + s5_vm_url_conv;
		    }

          s5_vm_ps_a[s5_vm1].title=s5_vm_ps_a[s5_vm1].childNodes[0].alt;

          s5_vm_ps_a[s5_vm1].rel = "lytebox";
		  
		  s5_vm_ps_a[s5_vm1].href = s5_vm_url_conv;
		  
       }

     }

   }